package com.lovo.csc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.LocalDate;

/**
 * 招标书
 */
@Getter
@Setter
@NoArgsConstructor
@TableName("tender")
public class TenderBean {
    @TableId(value = "pk_tenderId",type = IdType.AUTO)
    private long tenderId;
    @TableField("t_idNum")
    private String idNum;
    @TableField("t_date")
    private LocalDate date;

    @TableField("t_audit")
    @ApiModelProperty(value = "0-待审核，1-审核通过，2-审核不通过")
    private int audit;

    @TableField("t_cause")
    private String cause;

    @TableField("t_tenderState")
    @ApiModelProperty(value = "招标状态 0-已发布招标，1-未发布招标")
    private int tenderState;

    @TableField("t_tenderDate")
    private LocalDate tenderDate = LocalDate.now();

    @TableField("t_content")
    private String content;

    /**
     * 投标书标题
     */
    @TableField("t_title")
    private String title;
}
